﻿namespace Site2AppWP8
{
    using System.Windows;
    using Microsoft.Phone.Controls;

    public partial class NoNetworkOverlay : Overlay
    {
        public NoNetworkOverlay(PhoneApplicationPage mainPage)
            : base(mainPage)
        {
            this.InitializeComponent();
            this.RefreshLayout(Application.Current.Host.Content.ActualHeight, Application.Current.Host.Content.ActualWidth);
        }

        protected override void RefreshLayout(double height, double width)
        {
            this.LayoutRoot.Height = height;
            this.LayoutRoot.Width = width;
        }
    }
}
